import { createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    component: () => import(/* webpackChunkName: "Home" */ "@/views/Home.vue")
  },
  {
    path: "/view",
    name: "view",
    component: () => import(/* webpackChunkName: "view" */ "@/views/layout/ViewUI.vue")
  },
  {
    path: "/download",
    name: "download",
    component: () => import(/* webpackChunkName: "view" */ "@/views/utils/DownloadFile.vue")
  },
  {
    path: "/zone",
    name: "zone",
    component: () => import(/* webpackChunkName: "view" */ "@/views/user/UserZone.vue")
  }
  // { path: "/", redirect: { name: "home" } }
];

let history = createWebHashHistory();
const router = createRouter({
  history,
  routes
});

export default router;
